import Vue from 'vue'
import Vuex from 'vuex'
import Cookies from 'js-cookie'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    language: Cookies.get('language') || 'zh',
    user: '1'
  },
  getters,
  actions,
  mutations
})

